package com.snts.synchronization;

import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

import com.snts.synchronization.core.Synchronization;

public class Utils {
	
	public static Synchronization createSynchronization() throws SQLException, ClassNotFoundException
	{
		Class.forName("org.postgresql.Driver");
		Connection conn = DriverManager.getConnection("jdbc:postgresql://127.0.0.1:5432/testdb", "postgres", "123");
		return new Synchronization().load(conn.getMetaData());
	}
	
	byte[] getBytesFromInputStream(InputStream is)
	{
		
		return null;
	}
	
}
